﻿using System;
using System.Data;
using System.Text;
using System.Data.OracleClient;
using ChinaSoft.DBUtility;//Please add references
namespace ChinaSoft.DAL
{
	/// <summary>
	/// 数据访问类:DAL_T_PET_COMPLAIN
	/// </summary>
	public partial class DAL_T_PET_COMPLAIN
	{
		public DAL_T_PET_COMPLAIN()
		{}
		#region  Method

		/// <summary>
		/// 是否存在该记录
		/// </summary>
		public bool Exists(string PET_COMPLAIN_ID)
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("select count(1) from T_PET_COMPLAIN");
			strSql.Append(" where PET_COMPLAIN_ID=:PET_COMPLAIN_ID ");
			OracleParameter[] parameters = {
					new OracleParameter(":PET_COMPLAIN_ID", OracleType.VarChar,40)			};
			parameters[0].Value = PET_COMPLAIN_ID;

			return DbHelperOra.Exists(strSql.ToString(),parameters);
		}


		/// <summary>
		/// 增加一条数据
		/// </summary>
		public bool Add(ChinaSoft.Model.Model_T_PET_COMPLAIN model)
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("insert into T_PET_COMPLAIN(");
			strSql.Append("PET_COMPLAIN_ID,AFTER_RESULT,COMP_DATE,COMP_SOURCE,CONTENT,KICKER_ADDRESS,COMP_USER_NAME,KICKER_PHONE,LEADER_OPINION,NOTE,OBJECT_ID,OBJECT_TYPE,REG_ORG_ID,RESULT1,RESULT2,RESULT3,SERIAL_NUM,STATE,TAKER_NAME,TAKER_OPINION,TYPE,CREATE_TIME,CREATOR_ID,UPDATE_TIME,UPDATOR_ID,TAKE_TIME)");
			strSql.Append(" values (");
			strSql.Append(":PET_COMPLAIN_ID,:AFTER_RESULT,:COMP_DATE,:COMP_SOURCE,:CONTENT,:KICKER_ADDRESS,:COMP_USER_NAME,:KICKER_PHONE,:LEADER_OPINION,:NOTE,:OBJECT_ID,:OBJECT_TYPE,:REG_ORG_ID,:RESULT1,:RESULT2,:RESULT3,:SERIAL_NUM,:STATE,:TAKER_NAME,:TAKER_OPINION,:TYPE,:CREATE_TIME,:CREATOR_ID,:UPDATE_TIME,:UPDATOR_ID,:TAKE_TIME)");
			OracleParameter[] parameters = {
					new OracleParameter(":PET_COMPLAIN_ID", OracleType.VarChar,40),
					new OracleParameter(":AFTER_RESULT", OracleType.NVarChar),
					new OracleParameter(":COMP_DATE", OracleType.DateTime),
					new OracleParameter(":COMP_SOURCE", OracleType.NVarChar),
					new OracleParameter(":CONTENT", OracleType.NVarChar),
					new OracleParameter(":KICKER_ADDRESS", OracleType.NVarChar),
					new OracleParameter(":COMP_USER_NAME", OracleType.NVarChar),
					new OracleParameter(":KICKER_PHONE", OracleType.NVarChar),
					new OracleParameter(":LEADER_OPINION", OracleType.NVarChar),
					new OracleParameter(":NOTE", OracleType.NVarChar),
					new OracleParameter(":OBJECT_ID", OracleType.VarChar,40),
					new OracleParameter(":OBJECT_TYPE", OracleType.Number,10),
					new OracleParameter(":REG_ORG_ID", OracleType.VarChar,40),
					new OracleParameter(":RESULT1", OracleType.Clob,4000),
					new OracleParameter(":RESULT2", OracleType.NVarChar),
					new OracleParameter(":RESULT3", OracleType.NVarChar),
					new OracleParameter(":SERIAL_NUM", OracleType.NVarChar),
					new OracleParameter(":STATE", OracleType.Number,10),
					new OracleParameter(":TAKER_NAME", OracleType.NVarChar),
					new OracleParameter(":TAKER_OPINION", OracleType.NVarChar),
					new OracleParameter(":TYPE", OracleType.Number,10),
					new OracleParameter(":CREATE_TIME", OracleType.DateTime),
					new OracleParameter(":CREATOR_ID", OracleType.VarChar,40),
					new OracleParameter(":UPDATE_TIME", OracleType.DateTime),
					new OracleParameter(":UPDATOR_ID", OracleType.VarChar,40),
					new OracleParameter(":TAKE_TIME", OracleType.DateTime)};
			parameters[0].Value = model.PET_COMPLAIN_ID;
			parameters[1].Value = model.AFTER_RESULT;
			parameters[2].Value = model.COMP_DATE;
			parameters[3].Value = model.COMP_SOURCE;
			parameters[4].Value = model.CONTENT;
			parameters[5].Value = model.KICKER_ADDRESS;
			parameters[6].Value = model.COMP_USER_NAME;
			parameters[7].Value = model.KICKER_PHONE;
			parameters[8].Value = model.LEADER_OPINION;
			parameters[9].Value = model.NOTE;
			parameters[10].Value = model.OBJECT_ID;
			parameters[11].Value = model.OBJECT_TYPE;
			parameters[12].Value = model.REG_ORG_ID;
			parameters[13].Value = model.RESULT1;
			parameters[14].Value = model.RESULT2;
			parameters[15].Value = model.RESULT3;
			parameters[16].Value = model.SERIAL_NUM;
			parameters[17].Value = model.STATE;
			parameters[18].Value = model.TAKER_NAME;
			parameters[19].Value = model.TAKER_OPINION;
			parameters[20].Value = model.TYPE;
			parameters[21].Value = model.CREATE_TIME;
			parameters[22].Value = model.CREATOR_ID;
			parameters[23].Value = model.UPDATE_TIME;
			parameters[24].Value = model.UPDATOR_ID;
			parameters[25].Value = model.TAKE_TIME;

			int rows=DbHelperOra.ExecuteSql(strSql.ToString(),parameters);
			if (rows > 0)
			{
				return true;
			}
			else
			{
				return false;
			}
		}
		/// <summary>
		/// 更新一条数据
		/// </summary>
		public bool Update(ChinaSoft.Model.Model_T_PET_COMPLAIN model)
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("update T_PET_COMPLAIN set ");
			strSql.Append("AFTER_RESULT=:AFTER_RESULT,");
			strSql.Append("COMP_DATE=:COMP_DATE,");
			strSql.Append("COMP_SOURCE=:COMP_SOURCE,");
			strSql.Append("CONTENT=:CONTENT,");
			strSql.Append("KICKER_ADDRESS=:KICKER_ADDRESS,");
			strSql.Append("COMP_USER_NAME=:COMP_USER_NAME,");
			strSql.Append("KICKER_PHONE=:KICKER_PHONE,");
			strSql.Append("LEADER_OPINION=:LEADER_OPINION,");
			strSql.Append("NOTE=:NOTE,");
			strSql.Append("OBJECT_ID=:OBJECT_ID,");
			strSql.Append("OBJECT_TYPE=:OBJECT_TYPE,");
			strSql.Append("REG_ORG_ID=:REG_ORG_ID,");
			strSql.Append("RESULT1=:RESULT1,");
			strSql.Append("RESULT2=:RESULT2,");
			strSql.Append("RESULT3=:RESULT3,");
			strSql.Append("SERIAL_NUM=:SERIAL_NUM,");
			strSql.Append("STATE=:STATE,");
			strSql.Append("TAKER_NAME=:TAKER_NAME,");
			strSql.Append("TAKER_OPINION=:TAKER_OPINION,");
			strSql.Append("TYPE=:TYPE,");
			strSql.Append("CREATE_TIME=:CREATE_TIME,");
			strSql.Append("CREATOR_ID=:CREATOR_ID,");
			strSql.Append("UPDATE_TIME=:UPDATE_TIME,");
			strSql.Append("UPDATOR_ID=:UPDATOR_ID,");
			strSql.Append("TAKE_TIME=:TAKE_TIME");
			strSql.Append(" where PET_COMPLAIN_ID=:PET_COMPLAIN_ID ");
			OracleParameter[] parameters = {
					new OracleParameter(":AFTER_RESULT", OracleType.NVarChar),
					new OracleParameter(":COMP_DATE", OracleType.DateTime),
					new OracleParameter(":COMP_SOURCE", OracleType.NVarChar),
					new OracleParameter(":CONTENT", OracleType.NVarChar),
					new OracleParameter(":KICKER_ADDRESS", OracleType.NVarChar),
					new OracleParameter(":COMP_USER_NAME", OracleType.NVarChar),
					new OracleParameter(":KICKER_PHONE", OracleType.NVarChar),
					new OracleParameter(":LEADER_OPINION", OracleType.NVarChar),
					new OracleParameter(":NOTE", OracleType.NVarChar),
					new OracleParameter(":OBJECT_ID", OracleType.VarChar,40),
					new OracleParameter(":OBJECT_TYPE", OracleType.Number,10),
					new OracleParameter(":REG_ORG_ID", OracleType.VarChar,40),
					new OracleParameter(":RESULT1", OracleType.Clob,4000),
					new OracleParameter(":RESULT2", OracleType.NVarChar),
					new OracleParameter(":RESULT3", OracleType.NVarChar),
					new OracleParameter(":SERIAL_NUM", OracleType.NVarChar),
					new OracleParameter(":STATE", OracleType.Number,10),
					new OracleParameter(":TAKER_NAME", OracleType.NVarChar),
					new OracleParameter(":TAKER_OPINION", OracleType.NVarChar),
					new OracleParameter(":TYPE", OracleType.Number,10),
					new OracleParameter(":CREATE_TIME", OracleType.DateTime),
					new OracleParameter(":CREATOR_ID", OracleType.VarChar,40),
					new OracleParameter(":UPDATE_TIME", OracleType.DateTime),
					new OracleParameter(":UPDATOR_ID", OracleType.VarChar,40),
					new OracleParameter(":TAKE_TIME", OracleType.DateTime),
					new OracleParameter(":PET_COMPLAIN_ID", OracleType.VarChar,40)};
			parameters[0].Value = model.AFTER_RESULT;
			parameters[1].Value = model.COMP_DATE;
			parameters[2].Value = model.COMP_SOURCE;
			parameters[3].Value = model.CONTENT;
			parameters[4].Value = model.KICKER_ADDRESS;
			parameters[5].Value = model.COMP_USER_NAME;
			parameters[6].Value = model.KICKER_PHONE;
			parameters[7].Value = model.LEADER_OPINION;
			parameters[8].Value = model.NOTE;
			parameters[9].Value = model.OBJECT_ID;
			parameters[10].Value = model.OBJECT_TYPE;
			parameters[11].Value = model.REG_ORG_ID;
			parameters[12].Value = model.RESULT1;
			parameters[13].Value = model.RESULT2;
			parameters[14].Value = model.RESULT3;
			parameters[15].Value = model.SERIAL_NUM;
			parameters[16].Value = model.STATE;
			parameters[17].Value = model.TAKER_NAME;
			parameters[18].Value = model.TAKER_OPINION;
			parameters[19].Value = model.TYPE;
			parameters[20].Value = model.CREATE_TIME;
			parameters[21].Value = model.CREATOR_ID;
			parameters[22].Value = model.UPDATE_TIME;
			parameters[23].Value = model.UPDATOR_ID;
			parameters[24].Value = model.TAKE_TIME;
			parameters[25].Value = model.PET_COMPLAIN_ID;

			int rows=DbHelperOra.ExecuteSql(strSql.ToString(),parameters);
			if (rows > 0)
			{
				return true;
			}
			else
			{
				return false;
			}
		}

		/// <summary>
		/// 删除一条数据
		/// </summary>
		public bool Delete(string PET_COMPLAIN_ID)
		{
			
			StringBuilder strSql=new StringBuilder();
			strSql.Append("delete from T_PET_COMPLAIN ");
			strSql.Append(" where PET_COMPLAIN_ID=:PET_COMPLAIN_ID ");
			OracleParameter[] parameters = {
					new OracleParameter(":PET_COMPLAIN_ID", OracleType.VarChar,40)			};
			parameters[0].Value = PET_COMPLAIN_ID;

			int rows=DbHelperOra.ExecuteSql(strSql.ToString(),parameters);
			if (rows > 0)
			{
				return true;
			}
			else
			{
				return false;
			}
		}
		/// <summary>
		/// 批量删除数据
		/// </summary>
		public bool DeleteList(string PET_COMPLAIN_IDlist )
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("delete from T_PET_COMPLAIN ");
			strSql.Append(" where PET_COMPLAIN_ID in ("+PET_COMPLAIN_IDlist + ")  ");
			int rows=DbHelperOra.ExecuteSql(strSql.ToString());
			if (rows > 0)
			{
				return true;
			}
			else
			{
				return false;
			}
		}


		/// <summary>
		/// 得到一个对象实体
		/// </summary>
		public ChinaSoft.Model.Model_T_PET_COMPLAIN GetModel(string PET_COMPLAIN_ID)
		{
			
			StringBuilder strSql=new StringBuilder();
			strSql.Append("select PET_COMPLAIN_ID,AFTER_RESULT,COMP_DATE,COMP_SOURCE,CONTENT,KICKER_ADDRESS,COMP_USER_NAME,KICKER_PHONE,LEADER_OPINION,NOTE,OBJECT_ID,OBJECT_TYPE,REG_ORG_ID,RESULT1,RESULT2,RESULT3,SERIAL_NUM,STATE,TAKER_NAME,TAKER_OPINION,TYPE,CREATE_TIME,CREATOR_ID,UPDATE_TIME,UPDATOR_ID,TAKE_TIME from T_PET_COMPLAIN ");
			strSql.Append(" where PET_COMPLAIN_ID=:PET_COMPLAIN_ID ");
			OracleParameter[] parameters = {
					new OracleParameter(":PET_COMPLAIN_ID", OracleType.VarChar,40)			};
			parameters[0].Value = PET_COMPLAIN_ID;

			ChinaSoft.Model.Model_T_PET_COMPLAIN model=new ChinaSoft.Model.Model_T_PET_COMPLAIN();
			DataSet ds=DbHelperOra.Query(strSql.ToString(),parameters);
			if(ds.Tables[0].Rows.Count>0)
			{
				if(ds.Tables[0].Rows[0]["PET_COMPLAIN_ID"]!=null && ds.Tables[0].Rows[0]["PET_COMPLAIN_ID"].ToString()!="")
				{
					model.PET_COMPLAIN_ID=ds.Tables[0].Rows[0]["PET_COMPLAIN_ID"].ToString();
				}
				if(ds.Tables[0].Rows[0]["AFTER_RESULT"]!=null && ds.Tables[0].Rows[0]["AFTER_RESULT"].ToString()!="")
				{
					model.AFTER_RESULT=ds.Tables[0].Rows[0]["AFTER_RESULT"].ToString();
				}
				if(ds.Tables[0].Rows[0]["COMP_DATE"]!=null && ds.Tables[0].Rows[0]["COMP_DATE"].ToString()!="")
				{
					model.COMP_DATE=DateTime.Parse(ds.Tables[0].Rows[0]["COMP_DATE"].ToString());
				}
				if(ds.Tables[0].Rows[0]["COMP_SOURCE"]!=null && ds.Tables[0].Rows[0]["COMP_SOURCE"].ToString()!="")
				{
					model.COMP_SOURCE=ds.Tables[0].Rows[0]["COMP_SOURCE"].ToString();
				}
				if(ds.Tables[0].Rows[0]["CONTENT"]!=null && ds.Tables[0].Rows[0]["CONTENT"].ToString()!="")
				{
					model.CONTENT=ds.Tables[0].Rows[0]["CONTENT"].ToString();
				}
				if(ds.Tables[0].Rows[0]["KICKER_ADDRESS"]!=null && ds.Tables[0].Rows[0]["KICKER_ADDRESS"].ToString()!="")
				{
					model.KICKER_ADDRESS=ds.Tables[0].Rows[0]["KICKER_ADDRESS"].ToString();
				}
				if(ds.Tables[0].Rows[0]["COMP_USER_NAME"]!=null && ds.Tables[0].Rows[0]["COMP_USER_NAME"].ToString()!="")
				{
					model.COMP_USER_NAME=ds.Tables[0].Rows[0]["COMP_USER_NAME"].ToString();
				}
				if(ds.Tables[0].Rows[0]["KICKER_PHONE"]!=null && ds.Tables[0].Rows[0]["KICKER_PHONE"].ToString()!="")
				{
					model.KICKER_PHONE=ds.Tables[0].Rows[0]["KICKER_PHONE"].ToString();
				}
				if(ds.Tables[0].Rows[0]["LEADER_OPINION"]!=null && ds.Tables[0].Rows[0]["LEADER_OPINION"].ToString()!="")
				{
					model.LEADER_OPINION=ds.Tables[0].Rows[0]["LEADER_OPINION"].ToString();
				}
				if(ds.Tables[0].Rows[0]["NOTE"]!=null && ds.Tables[0].Rows[0]["NOTE"].ToString()!="")
				{
					model.NOTE=ds.Tables[0].Rows[0]["NOTE"].ToString();
				}
				if(ds.Tables[0].Rows[0]["OBJECT_ID"]!=null && ds.Tables[0].Rows[0]["OBJECT_ID"].ToString()!="")
				{
					model.OBJECT_ID=ds.Tables[0].Rows[0]["OBJECT_ID"].ToString();
				}
				if(ds.Tables[0].Rows[0]["OBJECT_TYPE"]!=null && ds.Tables[0].Rows[0]["OBJECT_TYPE"].ToString()!="")
				{
					model.OBJECT_TYPE=decimal.Parse(ds.Tables[0].Rows[0]["OBJECT_TYPE"].ToString());
				}
				if(ds.Tables[0].Rows[0]["REG_ORG_ID"]!=null && ds.Tables[0].Rows[0]["REG_ORG_ID"].ToString()!="")
				{
					model.REG_ORG_ID=ds.Tables[0].Rows[0]["REG_ORG_ID"].ToString();
				}
				if(ds.Tables[0].Rows[0]["RESULT1"]!=null && ds.Tables[0].Rows[0]["RESULT1"].ToString()!="")
				{
					//model.RESULT1=ds.Tables[0].Rows[0]["RESULT1"].ToString();
				}
				if(ds.Tables[0].Rows[0]["RESULT2"]!=null && ds.Tables[0].Rows[0]["RESULT2"].ToString()!="")
				{
					model.RESULT2=ds.Tables[0].Rows[0]["RESULT2"].ToString();
				}
				if(ds.Tables[0].Rows[0]["RESULT3"]!=null && ds.Tables[0].Rows[0]["RESULT3"].ToString()!="")
				{
					model.RESULT3=ds.Tables[0].Rows[0]["RESULT3"].ToString();
				}
				if(ds.Tables[0].Rows[0]["SERIAL_NUM"]!=null && ds.Tables[0].Rows[0]["SERIAL_NUM"].ToString()!="")
				{
					model.SERIAL_NUM=ds.Tables[0].Rows[0]["SERIAL_NUM"].ToString();
				}
				if(ds.Tables[0].Rows[0]["STATE"]!=null && ds.Tables[0].Rows[0]["STATE"].ToString()!="")
				{
					model.STATE=decimal.Parse(ds.Tables[0].Rows[0]["STATE"].ToString());
				}
				if(ds.Tables[0].Rows[0]["TAKER_NAME"]!=null && ds.Tables[0].Rows[0]["TAKER_NAME"].ToString()!="")
				{
					model.TAKER_NAME=ds.Tables[0].Rows[0]["TAKER_NAME"].ToString();
				}
				if(ds.Tables[0].Rows[0]["TAKER_OPINION"]!=null && ds.Tables[0].Rows[0]["TAKER_OPINION"].ToString()!="")
				{
					model.TAKER_OPINION=ds.Tables[0].Rows[0]["TAKER_OPINION"].ToString();
				}
				if(ds.Tables[0].Rows[0]["TYPE"]!=null && ds.Tables[0].Rows[0]["TYPE"].ToString()!="")
				{
					model.TYPE=decimal.Parse(ds.Tables[0].Rows[0]["TYPE"].ToString());
				}
				if(ds.Tables[0].Rows[0]["CREATE_TIME"]!=null && ds.Tables[0].Rows[0]["CREATE_TIME"].ToString()!="")
				{
					model.CREATE_TIME=DateTime.Parse(ds.Tables[0].Rows[0]["CREATE_TIME"].ToString());
				}
				if(ds.Tables[0].Rows[0]["CREATOR_ID"]!=null && ds.Tables[0].Rows[0]["CREATOR_ID"].ToString()!="")
				{
					model.CREATOR_ID=ds.Tables[0].Rows[0]["CREATOR_ID"].ToString();
				}
				if(ds.Tables[0].Rows[0]["UPDATE_TIME"]!=null && ds.Tables[0].Rows[0]["UPDATE_TIME"].ToString()!="")
				{
					model.UPDATE_TIME=DateTime.Parse(ds.Tables[0].Rows[0]["UPDATE_TIME"].ToString());
				}
				if(ds.Tables[0].Rows[0]["UPDATOR_ID"]!=null && ds.Tables[0].Rows[0]["UPDATOR_ID"].ToString()!="")
				{
					model.UPDATOR_ID=ds.Tables[0].Rows[0]["UPDATOR_ID"].ToString();
				}
				if(ds.Tables[0].Rows[0]["TAKE_TIME"]!=null && ds.Tables[0].Rows[0]["TAKE_TIME"].ToString()!="")
				{
					model.TAKE_TIME=DateTime.Parse(ds.Tables[0].Rows[0]["TAKE_TIME"].ToString());
				}
				return model;
			}
			else
			{
				return null;
			}
		}

		/// <summary>
		/// 获得数据列表
		/// </summary>
		public DataSet GetList(string strWhere)
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("select PET_COMPLAIN_ID,AFTER_RESULT,COMP_DATE,COMP_SOURCE,CONTENT,KICKER_ADDRESS,COMP_USER_NAME,KICKER_PHONE,LEADER_OPINION,NOTE,OBJECT_ID,OBJECT_TYPE,REG_ORG_ID,RESULT1,RESULT2,RESULT3,SERIAL_NUM,STATE,TAKER_NAME,TAKER_OPINION,TYPE,CREATE_TIME,CREATOR_ID,UPDATE_TIME,UPDATOR_ID,TAKE_TIME ");
			strSql.Append(" FROM T_PET_COMPLAIN ");
			if(strWhere.Trim()!="")
			{
				strSql.Append(" where "+strWhere);
			}
			return DbHelperOra.Query(strSql.ToString());
		}

		/// <summary>
		/// 获取记录总数
		/// </summary>
		public int GetRecordCount(string strWhere)
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("select count(1) FROM T_PET_COMPLAIN ");
			if(strWhere.Trim()!="")
			{
				strSql.Append(" where "+strWhere);
			}
			object obj = DbHelperSQL.GetSingle(strSql.ToString());
			if (obj == null)
			{
				return 0;
			}
			else
			{
				return Convert.ToInt32(obj);
			}
		}
		/// <summary>
		/// 分页获取数据列表
		/// </summary>
		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("SELECT * FROM ( ");
			strSql.Append(" SELECT ROW_NUMBER() OVER (");
			if (!string.IsNullOrEmpty(orderby.Trim()))
			{
				strSql.Append("order by T." + orderby );
			}
			else
			{
				strSql.Append("order by T.PET_COMPLAIN_ID desc");
			}
			strSql.Append(")AS Row, T.*  from T_PET_COMPLAIN T ");
			if (!string.IsNullOrEmpty(strWhere.Trim()))
			{
				strSql.Append(" WHERE " + strWhere);
			}
			strSql.Append(" ) TT");
			strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
			return DbHelperOra.Query(strSql.ToString());
		}

		/*
		/// <summary>
		/// 分页获取数据列表
		/// </summary>
		public DataSet GetList(int PageSize,int PageIndex,string strWhere)
		{
			OracleParameter[] parameters = {
					new OracleParameter(":tblName", OracleType.VarChar, 255),
					new OracleParameter(":fldName", OracleType.VarChar, 255),
					new OracleParameter(":PageSize", OracleType.Number),
					new OracleParameter(":PageIndex", OracleType.Number),
					new OracleParameter(":IsReCount", OracleType.Clob),
					new OracleParameter(":OrderType", OracleType.Clob),
					new OracleParameter(":strWhere", OracleType.VarChar,1000),
					};
			parameters[0].Value = "T_PET_COMPLAIN";
			parameters[1].Value = "PET_COMPLAIN_ID";
			parameters[2].Value = PageSize;
			parameters[3].Value = PageIndex;
			parameters[4].Value = 0;
			parameters[5].Value = 0;
			parameters[6].Value = strWhere;	
			return DbHelperOra.RunProcedure("UP_GetRecordByPage",parameters,"ds");
		}*/

		#endregion  Method
	}
}

